package cn.edu.neu.controller.user;

import cn.edu.neu.model.Evaluate;
import cn.edu.neu.service.EvaluateService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("/evaluate")
public class EvaluateController {

    @Autowired
    private EvaluateService evaluateService;

    @RequestMapping("/addEvaluate")
    public String addEvaluate(Evaluate evaluate){

        evaluateService.insertEvaluate(evaluate);
        return "redirect:/travelNotes/getTravelNotesList";

    }
}
